<?php $this->load->view('layout/header'); ?>
<div class="supplier-content-page">
	<div class="product-test-h5">
		<ul class="breadcrumb">
			<li><a href="javascript:;">我的账户</a></li>
			<li class="active"><a href="<?php echo site_url('accountinfo/accountRecord');?>">账户信息</a></li>
		</ul>
		<div class="pay-text screen-min-width">
			<div class="take-head clearfix">
				<h5>提取余额到银行卡</h5>
				<p class="take-black">余额<i><?php echo number_format($userAccount->amount_carry, 2, '.', ',');?>元</i></p>
				<a href="#binding-bank-modal" role="button" data-toggle="modal" class="take-add">
					<i>+</i>
					<p>添加银行卡</p>
				</a>
			</div>
			<div class="take-text">
				<form action="<?php echo site_url('withdraw/confirm'); ?>" method="post" id="withdraw-form">
					<input type="hidden" name="quota" value="<?php echo $userAccount->amount_carry; ?>">
					<ul>
						<li class="clearfix">
							<h6>选择银行卡：</h6>
							<div class="take-card" id="ajax-user-bank-list">
								<?php $this->load->view('withdraw/ajaxBankList'); ?>
							</div>
						</li>
						<li class="clearfix">
							<h6>提现金额：</h6>
							<div class="take-card">
								<input type="text" name="amount" class="take-input" placeholder="请输入提现金额" >
								<span class="error"></span>
							</div>
						</li>
						<li class="clearfix">
							<h6>到账时间：</h6>
							<div class="take-card">
								预计2-5日到账
							</div>
						</li>
					</ul>
					<button type="submit" class="take-submit">下一步</button>
				</form>
			</div>
		</div>
	</div>
</div>

<div id="binding-bank-modal" class="take-modal modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <h4 class="clearfix">
      <i>+</i>
      <p>添加银行卡</p>
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  </h4>
  <div class="take-from">
      <form id="binding-bank-form">
          <input type="hidden" name="bank_id" value="5">
          <div class="take-list take-style clearfix">
              <h6>付款方式：</h6>
              <div class="take-box">
                <?php if ($payBank->num_rows() > 0) : ?>
                  <img src="<?php echo $this->config->show_image_url($payBank->row()->bank_img); ?>" id="tank-img">
                  <ul class="bank-react clearfix" id="method-bank-list">
                      <?php foreach($payBank->result() as $value) : ?>
                      <li data-id="<?php echo $value->method_id; ?>">
                          <img src="<?php echo $this->config->show_image_url($value->bank_img); ?>" title="<?php echo $value->bank_name; ?>">
                      </li>
                      <?php endforeach; ?>
                  </ul>
                  <?php endif; ?>
              </div>
              <span class="error my-hide" id="bank-id-error">请选择银行卡号</span>
          </div>
          <p class="take-icon">
              <i class="iconfont">&#xe602;</i>请填写以下信息,以下信息用于实名身份验证
          </p>
        <div class="take-list clearfix">
            <h6>类别：</h6>
            <div class="take-box">
                <label class="take-radio take-pers">
                    <input type="radio" name="user_type" value="1" checked>个人
                </label>
                <label class="take-radio take-ibm">
                    <input type="radio" name="user_type" value="2">公司
                    <span class="error"></span>
                </label>
            </div>
        </div>
        <div class="js-pers">
            <div class="take-list clearfix">
                <h6>姓名：</h6>
                <div class="take-box">
                    <input type="text" name="cardholder">
                    <span class="error"></span>
                </div>
            </div>
            <div class="take-list clearfix">
                <h6>身份证：</h6>
                <div class="take-box">
                    <input type="text" name="pin">
                    <span class="error"></span>
                </div>
            </div>
            <div class="take-list clearfix">
                <h6>银行卡卡号：</h6>
                <div class="take-box">
                    <input type="text" name="bank_card">
                    <span class="error"></span>
                </div>
            </div>
        </div>
        <div class="js-ibm">
            <div class="take-list clearfix">
                <h6>公司名称：</h6>
                <div class="take-box">
                    <input type="text" name="company">
                    <span class="error"></span>
                </div>
            </div>
            <div class="take-list clearfix">
                <h6>银行名称：</h6>
                <div class="take-box">
                    <input type="text" name="bank_name">
                    <span class="error"></span>
                    <span class="describe">(具体到银行支行)</span>
                </div>
            </div>
            <div class="take-list clearfix">
                <h6>对公帐号：</h6>
                <div class="take-box">
                    <input type="text" name="company_bank">
                    <span class="error"></span>
                </div>
            </div>
        </div>
          <div class="take-list clearfix">
              <h6>手机号：</h6>
              <div class="take-box">
                  <input type="text" name="mobile_phone">
                  <span class="error"></span>
              </div>
          </div>
          <div class="take-list clearfix">
              <h6>验证码：</h6>
              <div class="take-box">
                  <input type="text" class="take-verify" name="captcha">
                  <span class="error"></span>
                  <a href="javascript:;" class="verify-button" id="binding-bank-card-sms">
                      获取验证码
                  </a>
              </div>
          </div>
          <button type="submit" class="take-deliver">提交</button>
      </form>
  </div>
</div>
<?php $this->load->view('layout/footer'); ?>
